package jcer.test;

import java.util.List;

import org.apache.commons.configuration.Configuration; 
import org.apache.commons.configuration.PropertiesConfiguration;
 
public class Config {
	public static void main(String[] args) throws Exception {
		Configuration config = new PropertiesConfiguration("./conf/sqltask.properties");
		while (true) {
			Configuration sourceConfig = config.subset("db.source");
			System.out.println(sourceConfig.getString("key"));
			if (sourceConfig.isEmpty()) {
				break;
			}
		}
		 
		config.getProperties("db.source");
		List<Object> list = config.getList("db.source.key");
		System.out.println(list.size());
	}
}
